import Vue from 'vue'
import Router from 'vue-router'
import LayoutMain from '@/components/main/index.js'

Vue.use(Router)

export default new Router({
	mode: 'history',
	routes: [
		{ path: '/', name: '_Index', redirect: 'Home', component: LayoutMain, children: [
			{ path: '/', name: 'Home', component: () => import('@/page/index'), meta: { hideInMenu: false, notCache: true, icon: 'md-home', title: '首页' } }
		]},

		{ path: '/login', name: '_login', component: () => import('@/page/login') },
		{ path: '*', name: '_notFound', component: () => import('@/page/error404') },
	]
})
